package cn.springBoot.listener;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

/**
 * @author ljx  执行监听
 * @description: TODO
 * @class cn.springBoot.listener.AdminExecutionListener
 * @create date: 2021/9/18
 */
@Component("lis")
public class AdminExecutionListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution delegateExecution) throws Exception {
        System.out.println("#########执行监听");
        String eventName = delegateExecution.getEventName();
        System.out.println(eventName);//create delete等

        System.out.println("#########");
    }
}
